% # variable:
% # bookshelf, ebooks, target_uuid, target_bookuuid
% # target_uuid 是用來追蹤path與target用的

<nav class="stnav">
    <ul class="menuroot">
        <li><a title="All books are listed in here.">Book Menu</a>
            <ul>
                % for ebook in ebooks:
                    % if ebook.get('uuid') == target_bookuuid:
                        % include nav_item book = bookshelf.findbook(ebook.get('uuid')), eroot = ebook, bookuuid = ebook.get('uuid'), target_uuid = target_uuid, max_level = 10000, trace_path_enable = True
                    % else:
                        % include nav_item book = bookshelf.findbook(ebook.get('uuid')), eroot = ebook, bookuuid = ebook.get('uuid'), target_uuid = target_uuid, max_level = 10000, trace_path_enable = False
                    % end
                % end
            </ul>
        </li>
    </ul>
</nav>
